<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            $db=new PDO("mysql:host=localhost;dbname=webdb", "webap", "t0255",array(PDO::MYSQL_ATTR_INIT_COMMAND => "set names utf8"));

            $rs = $db->query("SELECT * FROM sps_deeds_main");
            $result_arr = $rs->fetchAll(PDO::FETCH_ASSOC);
            $column_arr = $rs->fetchColumn();

            print_r($result_arr);

            echo "----------------------------------------------------------------------------------------------------------------------";

            print_r($column_arr);
        ?>
    </body>
</html>
